FROM openjdk:17 as builder-x86
#发布到网上时只会把jar包和Dockerfile发布上去

COPY ./target/*.jar /xywzxw.jar

##地址映射
CMD ["--server.port=8101"]

##对外暴露端口
EXPOSE 8101

#执行命令
ENTRYPOINT ["java","-jar","/xywzxw.jar"]